home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Resources
/
PaperCut Quota 6.1
/
pc-setup.exe
/
{app}
/
WebAdmin
/
default.asp
< prev
next >
Wrap
Text File
|
2005-07-05
|
3KB
|
89 lines
<%@ Language=VBScript %>
<%' (c) Copyright 1999-2004 PaperCut Software Pty. Ltd. %>
<!-- #include file="includes/PCCommon.inc" -->
<!--#include file="includes/header.inc" -->
<%
Dim objPCWeb
Set objPCWeb = Server.CreateObject("PCWebAdmin.PCWebUsers")
If objPCWeb.Error Then
WriteErrorMessage objPCWeb.ErrorDescription
End If
if Not gblnIsLoggedIn then
WriteErrorMessage GetText("ErrorUserNotLoggedIn") & " " & GetText("AnonAccessDisabled")
else
'''''''''''''''''''''''''''''''''''''''
''''' Start of User Detail Screen '''''
'''''''''''''''''''''''''''''''''''''''
%>
<h1><%=GetText("MySummary")%></h1>
<%
' Find the details of the user
objPCWeb.SeekUser(gstrLoggedInUser)
if (UCase(objPCWeb.UserName) <> UCase(gstrLoggedInUser)) then
' No match.
WriteErrorMessage GetTextReplace("ErrorCantFindUser", Array(gstrLoggedInUser))
Else
%>
<FORM ACTION="default.asp" METHOD="POST" id=form1 name=form1>
<INPUT type="hidden" name=strUserName value="<%= gstrLoggedInUser%>">
<INPUT type="hidden" name=blnSubmitted value="T">
<TABLE class="webAdmin" width="500">
<TR class="evenRow" >
<TH width="150"><%=GetText("Username")%>:</TH>
<TD width="250"><%= objPCWeb.UserName %></TD>
</TR>
<TR class="oddRow">
<TH width="150"><%=GetText("Credit")%>:</Th>
<TD align="left" width="250"><%= objPCWeb.CreditText %></TD>
</TR>
<TR class="evenRow">
<TH width="150"><%=GetText("PagesPrinted")%>:</TH>
<TD align="left" width="250">
<%= FormatNumber(objPCWeb.PagesPrinted, 0, true, false, true) %>
</TR>
<% If gblnHasNetCharging or gblnShowUserNetUsageTotals Then %>
<TR class="oddRow">
<TH width="150"><%=GetText("NetDataUsed")%>:</TH>
<TD align="left" width="250">
<%= objPCWeb.TotalMBText & " " & GetText("MBAbbr") %>
</TD>
</TR>
<TR class="evenRow">
<TH width="150"><%=GetText("NetTimeUsed")%>:</TH>
<TD align="left" width="250">
<%= objPCWeb.TotalNetHoursText & " " & GetText("HoursAbbr")%>
</TD>
</TR>
<% End If %>
<TR class="oddRow">
<TH width="150" ><%=GetText("Privilege")%>:</TH>
<TD width="250" align="left">
<% if objPCWeb.Unrestricted then %>
<%=GetText("Unrestricted")%>
<% else %>
<%=GetText("Restricted")%>
<% end if %>
</TD>
</TR>
</TABLE>
</FORM>
<%
'''''''''''''''''''''''''''''''''''''
''''' End of User Detail Screen '''''
'''''''''''''''''''''''''''''''''''''
End If
End If
Set objPCWeb = nothing
%>
<!--#include file="includes/footer.inc" -->